package com.ruoyi.ob.mapper;

import java.util.List;
import com.ruoyi.ob.domain.PurchaseOrderDetail;

/**
 * 采购订单明细Mapper接口
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
public interface PurchaseOrderDetailMapper 
{
    /**
     * 查询采购订单明细
     * 
     * @param detailId 采购订单明细主键
     * @return 采购订单明细
     */
    public PurchaseOrderDetail selectPurchaseOrderDetailByDetailId(String detailId);

    /**
     * 查询采购订单明细列表
     * 
     * @param purchaseOrderDetail 采购订单明细
     * @return 采购订单明细集合
     */
    public List<PurchaseOrderDetail> selectPurchaseOrderDetailList(PurchaseOrderDetail purchaseOrderDetail);

    /**
     * 新增采购订单明细
     * 
     * @param purchaseOrderDetail 采购订单明细
     * @return 结果
     */
    public int insertPurchaseOrderDetail(PurchaseOrderDetail purchaseOrderDetail);

    /**
     * 修改采购订单明细
     * 
     * @param purchaseOrderDetail 采购订单明细
     * @return 结果
     */
    public int updatePurchaseOrderDetail(PurchaseOrderDetail purchaseOrderDetail);

    /**
     * 删除采购订单明细
     * 
     * @param detailId 采购订单明细主键
     * @return 结果
     */
    public int deletePurchaseOrderDetailByDetailId(String detailId);

    /**
     * 批量删除采购订单明细
     * 
     * @param detailIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseOrderDetailByDetailIds(String[] detailIds);
}
